package com.zzty.train.dao;


import com.zzty.train.entity.SelfExam;
import com.zzty.train.entity.TeamExam;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SelfExamDao {
    @Select("select * from selfExam where classId=#{clazzId} and date=#{date}")
    SelfExam checkByDateAndClazzId(SelfExam selfExam);

    @Insert("insert into selfExam (questionId,classId,date) values (#{questionId},#{clazzId},#{date})")
    Integer insertSelfExam(SelfExam selfExam);
}
